package com.study.mybatisplus.service;

import com.study.mybatisplus.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
public interface IUserService extends IService<User> {
    public Integer add(User user) throws Exception;
    public User info(Integer id) throws Exception;
    public Boolean udpate(User user, Integer id) throws Exception;
    public User findUserByPhone(String phone) throws Exception;
    public Map<String,Object> findUserById(Integer id) throws Exception;
}
